package com.hgw.Demo02CommandPattern.Exercises17_10_6;

/**
 * Data time:2021/12/16 23:32
 * StudentID:2019112118
 * Author:hgw
 * Description: 打开命令，充当具体命令
 */
public class OpenCommand implements Command {
    private BoardScreen boardScreen;

    public OpenCommand(BoardScreen boardScreen) {
        this.boardScreen = boardScreen;
    }

    @Override
    public void execute() {
        boardScreen.open();
    }
}
